package itsm.isperp.module.service.task;

import java.util.List;

import itsm.isperp.framework.service.BaseService;
import itsm.isperp.module.entity.task.TskInspectTemplateCheck;
import itsm.isperp.module.repository.task.TskInspectTemplateCheckMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务
 * 
 * @author lizx
 * @date 2015-11-06 11:09
 */
@Service
public class TskInspectTemplateCheckService extends
		BaseService<TskInspectTemplateCheck> {

	@Autowired
	protected TskInspectTemplateCheckMapper tskInspectTemplateCheckMapper;

	@Override
	public TskInspectTemplateCheckMapper getRepository() {
		return this.tskInspectTemplateCheckMapper;
	}

	public List<TskInspectTemplateCheck> findAllByTemplateId(String templateId) {
		return this.tskInspectTemplateCheckMapper
				.findAllByTemplateId(templateId);
	}

	public List<TskInspectTemplateCheck> findAllByDefId(String defId) {
		return this.tskInspectTemplateCheckMapper.findAllByDefId(defId);
	}

}
